package com.zb.stu.service.impl;

import com.zb.stu.dao.CategoryDao;
import com.zb.stu.entity.Category;
import com.zb.stu.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by user on 2018/11/29.
 */
@Service
@Transactional
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryDao categoryDao;
    @Override
    public List<Category> listCategory() {
        return categoryDao.listCategory();
    }
}
